<!doctype html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="utf-8" />
    <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>{$book[book_name]}_{$book[book_auth]}</title>
    <meta name="keywords" content="{$book[book_name]},{$book[book_auth]}全文阅读,{$book[book_name]}最新章节"/>
    <meta name="description" content="微阅云" />
    <link rel="shortcut icon" href="Favicon.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" href="/novel/css/wap_base.css" />
    <link type="text/css" rel="stylesheet" href="/novel/css/wap_intro.css" />
    <script type="text/javascript" src="/novel/js/jquery.min.js"></script>
    <script type="text/javascript" src="/novel/js/jquery.cookie.js"></script>
    <script type="text/javascript">
        var fromaid = 245;
        function collection(flag) {
            if ($.cookie("user_id") == null) {
                alert('请先登录！');
                return ;
            }

            if (flag) {
                $.ajax({
                    url: "/Collection/index/fromaid/"+fromaid+".html",
                    type: "post",
                    data: 'bookid=' + $("#bookid").val(),
                    success: function (data) {
                        if (data == 1) {
                            $("#collection_div").replaceWith("<a id='collection_div' class='intro_fav fr intro_fav_ok' href='javascript:void(0)'' onClick='collection(false)' >-已收藏</a>");
                        } else {
                            //alert('该书您已收藏');
                        }
                    }
                });
            } else {
                $.ajax({
                    url: "/Collection/dell/fromaid/"+fromaid+".html",
                    type: "post",
                    data: 'bookid=' + $("#bookid").val(),
                    success: function (data) {
                        if (data == 1) {
                            $("#collection_div").replaceWith("<a id='collection_div' class='intro_fav fr' href='javascript:void(0)'' onClick='collection(true)' >+添加收藏</a>");
                        } else {
                            //alert('该书您已收藏');
                        }
                    }
                });
            }
        }

        $(function(){
            $('.notice_down .close,.com_alert .contxt .close').on('click',function(){
                $('.notice_down,.com_alert').hide();
                $('.com_alert .contxt textarea').val('');
                $('.com_alert .contxt h6').html('');
            })

            var com_alertH5 = $('.com_alert h5');
            $('.wapcomment .publish').on('click',function(){
                $('.com_alert,.com_alert .contxt .puss').show();
                com_alertH5.hide();
                $('.com_alert .downs').addClass('bounceInDown');
                $('.com_alert .contxt textarea').val('');
            })

            $('.com_alert .com_push').on('click',function(){
                var  com_alertZhi = $('.com_alert .contxt textarea').val();
                if(com_alertZhi.length == 0 || com_alertZhi.match(/^\s+$/g)){
                    $('.com_alert .contxt h6').show().html('啥东西没？休想提交！');
                    return false;
                }
                if(com_alertZhi.length < 5){
                    $('.com_alert .contxt h6').show().html('评论字数太少！');
                    return false;
                }

                var bookid = 1304;
                var fromaid = 245;
                $.ajax({
                    url:"/NewBooks/release/fromaid/"+fromaid+".html",
                    type:"POST",
                    data:'bookid='+bookid+'&fromaid='+fromaid+'&content='+com_alertZhi,
                    success:function(data){
                        if (data == 1) {
                            com_alertH5.show();
                            com_alertH5.find('b').html('评论成功!');  /*如果不成功：评论失败!*/
                        } else {
                            com_alertH5.show();
                            com_alertH5.find('b').html('评论失败!');  /*如果不成功：评论失败!*/
                        }

                        //2秒后关闭弹框
                        setTimeout(function(){
                            $('.com_alert').hide();
                        },2000)
                    }
                })
            })

            var page=2;
            $(".lookmore").click(function(){
                $.ajax({
                    url: "/Moreinfo/nextmessage/fromaid/245.html",
                    type: "post",
                    data: 'bookid=' + $("#bookid").val()+'&page='+page,
                    success: function (data) {
                        if (data == 1) {
                            $(".lookmore").attr('src','javascript:void(0)');
                            $(".lookmore").text('没有内容了');
                        } else {
                            $("#bookmessage").append(data);
                            page++;
                        }
                    }
                });
            });
        });
    </script>
    <script type="text/javascript" src="/Public/Wap/js/detail.js?v=2"></script>
</head>
<body>
<input type="hidden" name="bookid" id="bookid" value="1304" />
<section class="menu otmenu clearfix">
    <section class="container">
        <ul class="firstmenu">
            <li><a href="/Index/index"><b>首页</b></a></li>
            <li><a href="/index/getCategory"><b>书库</b></a></li>
        </ul>
    </section>
</section>
<section class="wapheader" style="margin-bottom: 10px">
    <section class="container">
        <a href='/Index/getBookCase' class='fl mybook'>我的书架</a>
        <span class='right fr'>
            <a href='' class='mybook'>游客[{$uid}]</a>
            <a href='' >
                <img style='border-radius:10px' src='http://wx.qlogo.cn/mmopen/wuCeb43bynjpnmdKWm7aiaV03jPpzjJJgmzdOzT09GfpgGicqIxA423znEocgLGaVvAaYpHUqzQFPLOwoEYpF6UpO4d0xdA9Ig/0'/>
            </a>
        </span>
    </section>
</section>
<section class="book_info clearfix">
    <section class="container">
        <div class="clearfix">
            <div class="info_left fl">
                <img src="{$book[book_img]}" alt="">
            </div>
            <div class="info_right fl ">
                <h2>{$book[book_name]}</h2>
                <p>作者：{$book[book_auth]}</p>
                <p>更新：{$book[u_time]}</p>
            </div>
        </div>
        <section class="intro clearfix">
            <h1>
                <a href="/index/getChapter?id={$asc[0][id]}">开始阅读</a><eq name="is_favorite" value="1"><a class="intro_fav fr">-已收藏</a></eq><neq name="is_favorite" value="1"><a class="intro_fav fr" href="/Index/getBook?id={$book[id]}&addFavorite=1" >+添加收藏</a></neq></h1>
            <div class="con clearfix">
                <h2>简介</h2>
                <div class="con_con" style="max-height: 16rem;">
                    <p style='text-indent:2em;'>{$book[book_info]}</p>
                </div>
            </div>
        </section>
        <div class="catalog">
            <h2>目录 <a class="fr" href="/index/getChapter?id={$desc[id]}" title="">最近更新：{$desc[ch_name]}</a>
            </h2>
            <ul>
                <volist name="asc" id="item">
                    <li><a href="/index/getChapter?id={$item[id]}" title="">{$item[ch_name]}</a></li>
                </volist>
                <li><a href="/index/getChapterList?id={$book[book_id]}" title="">全部目录</a></li>
            </ul>
        </div>
    </section>
</section>

<section class="footer clearfix">
    <section class="container">
        <!--<p style='color:black'> 工作时间：周一到周日 9:00-17:30 <br />
            电话：18639556129<br /> QQ：3337599839 </p>-->
        <p class="clearfix">
            <img src="http://open.weixin.qq.com/qr/code/?username=badianshuge" style="width:50%;height:auto" />
        </p><p>Copyright©2016-2021 emeixs.com All rights reserved<br/>
        豫ICP备16023819号-6<br/>
        郑州麦睿登网络科技有限公司版权所有<br/> </p>
    </section>
</section>
<div style="display:none"> </div>
<div style='display:none'>
    <script src="https://s4.cnzz.com/z_stat.php?id={$cnzz}&web_id={$cnzz}" language="JavaScript"></script>
</div>
</body>
</html>
